const Http = require("./Http")
class ArticleHttp extends Http{
    static getList(){
        return ArticleHttp.request({
            url:"/api/article"
        })
    }
    static getDetail(id){
        return ArticleHttp.request({
            url:`/api/ArticleDetail?id=${id}`
        })
    }
    static setCollect({id,collected}){
        return ArticleHttp.request({
            url:"/api/doCollect",
            method:"post",
            data:{id,collected}
        })
    }
}
module.exports = ArticleHttp